package com.neu.view;

import java.awt.BorderLayout;
import java.awt.Component;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.JButton;
import javax.swing.JPanel;
import javax.swing.JTable;
import javax.swing.table.TableCellRenderer;

public class PatientButtonRender implements TableCellRenderer {

	private JPanel panel;

	private JButton button;

	public PatientButtonRender() {
		initButton();

		initPanel();

		panel.add(button, BorderLayout.CENTER);
	}

	private void initButton() {
		button = new JButton();

	}

	private void initPanel() {
		panel = new JPanel();

		panel.setLayout(new BorderLayout());
	}

	public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus,
			int row, int column) {
		button.setText("评估");

		return panel;
	}

}
